package widgets

import (
	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/widget"
)

func EmptyList() *widget.List {
	return widget.NewList(func() int { return 0 },
		func() fyne.CanvasObject { return widget.NewLabel("") },
		func(lii widget.ListItemID, co fyne.CanvasObject) {})
}
func EmptyWin(title string) fyne.Window {
	w := fyne.CurrentApp().NewWindow(title)
	w.Resize(fyne.NewSize(900, 600))
	w.SetContent(widget.NewLabel("this is a window with a label"))
	w.CenterOnScreen()
	return w
}
func EmptyTree() *widget.Tree {
	return widget.NewTree(func(tni widget.TreeNodeID) []widget.TreeNodeID {
		return []string{}
	}, func(tni widget.TreeNodeID) bool {
		return false
	}, func(b bool) fyne.CanvasObject {
		return widget.NewLabel("tree")
	}, func(tni widget.TreeNodeID, b bool, co fyne.CanvasObject) {})
}
